package com.itheima.demo;

public class test_2 {
    public static void main(String[] args) {
        Person p1=new Person("张三",12);
        String s1 = p1.toString();
        Person p2=new Person("李四",14);
        String s = p2.toString();
        p1=p2;
        //重写·了equals方法
        boolean b = p1.equals(null);
        System.out.println(b);




    }
}
